import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/app.scss'
import middlewares from './plugins/middlewares'
import directives from './plugins/directives'
import ElementUI from 'element-ui'
import filters from './plugins/filters'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/setDefault.scss'
import './assets/font/iconfont.css'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'

// set ElementUI lang to EN
Vue.use(ElementUI, { zhLocale })
Vue.use(ElementUI)

// import Raven from 'raven-js'
// import RavenVue from 'raven-js/plugins/vue'

Vue.use(middlewares)
Vue.use(directives)
Vue.use(filters)
// set ElementUI lang to EN
Vue.config.productionTip = false
// if (process.env.NODE_ENV === 'production') {
//   Raven
//     .config('https://443e984adbde498b91a1f42debf12192@sentry.retailo2o.com/49')
//     .addPlugin(RavenVue, Vue)
//     .install()
//   window.$Raven = Raven
// }
// Vue.use(Raven)
new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
